package com.xt.LibaryDeskManager.vo;

/**
 * @author 童归权
 * @version 1.0 2021/2/2
 */
public class StudentVo {
    private String id;
    private String name;
    private String password;
    private String phone;
    private String img;
    private boolean valid;
    private int level;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public boolean getValid() {
        return valid;
    }

    public void setValid(boolean valid) {
        this.valid = valid;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public StudentVo() {
        this.img = "/img/student.jpg";
        this.valid = true;
        this.level = 1;
    }

    public StudentVo(String id, String name, String password, String phone, String img, boolean valid, int level) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.phone = phone;
        this.img = "/img/student.jpg";
        this.valid = true;
        this.level = 1;
    }

    @Override
    public String toString() {
        return "StudentVo{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", img='" + img + '\'' +
                ", valid=" + valid +
                ", level=" + level +
                '}';
    }
}